<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>游戏成就</title>
    <style>
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
        }

        .achievement-card {
            display: inline-block;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 15px 20px;
            margin: 10px;
            background-color: #f9f9f9;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .current-time {
            margin-bottom: 20px;
            font-size: 16px;
            color: #666;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="current-time">
        <%
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
            String currentTime = sdf.format(new java.util.Date());
        %>
        当前时间：<%= currentTime %>
    </div>

    <%
        String[] achievements = { "首次登录", "连续签到7天", "击败Boss", "好友邀请达人", "完成新手教程", "累计登录30天" };

    %>

    <div class="achievements-container">
        <% if (achievements.length == 0) { %>
        <p style="color: #999; font-size: 18px;">你还没有任何成就，快去闯关吧！</p>
        <% } else { %>
        <h3>我的游戏成就</h3>
        <% for (String achievement : achievements) { %>
        <div class="achievement-card">🏆 <%= achievement %></div>
        <% } %>
        <% } %>
    </div>
</div>
</body>
</html>